Latest Questions

How to have the input value appear?

Hello I am new to coding and I have to do this an assignment for school, I am just a little bit stuck on this part of the assignment. I need to be able to make

Error while creating project on ruby on rails

I am new to ruby on rails hence when i am trying to create new project by following command: rails new abc I am getting following error rails aborted! Psych::Ba

How to create a GraphQL typed SDK from a Typescript schema object?

I have a code-first GraphQL API in which the GraphQLSchema is created like so: import { GraphQLSchema } from 'graphql'; import { mutationType } from './mutation

React Card Example issue - Card is replaced instead of being appended to a list of cards in another column

I have been persistently working on this problem where the goal is to drag a card form 'Column 1' and copy that into another column say 'Column 2'. Now when my

Cosine similarity between rows of two large dataframes in R

I've two dataframes DF1 and DF2. One of them is a very large DF. I've created examples DF1 and 2 like this: library(tidyverse) A<-rep(c('Mavs', 'Spurs', 'La

Rails 7 - picking up assets automatically in dev doesn't work

For some unknown reason Rails 7 (development environment) doesn't pick up changes in application.js automatically when I hit F5 in the browser. The location app

checking array of objects

I wanted to check if each length of array of objects of inspectionScheduleUnitContactArtifactDto , if there is one inspectionScheduleUnitContactArtifactDto whic

How to get the top 1% of soloists calculated by the total number of concerts performed

I'm working on this sql challenge, but I don't know if the way to get the top 1% of soloists calculated by the total number of concerts performed. is correct. P

Not able to run Junit test with H2 database SpringBoot

I have a strange problem with my unit test.. My goal is to run test on a H2 database and not on my Mysql database.. Actually the strange thing is that when i cl

Pass Date from Datepicker to Spinner selected item and load API Response in Fragment

I have a working app where user select an option from Spinner the datepicker auto open user select the date and view data. However, I am trying to include an Im

Why does jest mock test give me undefined?

I am new to learning jest mocks. I am trying out a very simple test. I have a folder greeter. This folder has a file 'greeter.js' and a subfolder called 'test'.

dataframe to save csv: not accumulating the records only saving the last dataframe group records

dataframe question in web scraping data group example:the first loop-eg:5 records, second loop-eg:3 records when I did my below code, the csv file was saved the

Interfaces and static methods in java [closed]

It occurred to me that interfaces cannot be instantiated and hence I could create an interface containing only a bunch of static utilities met

How to move desktop icons with python?

I am making a python program that moves the desktop icons using LVM_SETITEMPOSITION from winapi but I have a problem with commctrl.LVM_SETITEMPOSITION and it gi

Including unlabelled data in sklearn pipeline

I'm setting up a machine learning pipeline to classify some data. I have lots of unlabelled data (i.e. target variable is unknown) that I would like to make use

Where should the MUI X Pro license key be installed?

I have a next app and recently bought a license for MUI. Where is the appropriate place to place the following setter for the license info? Does it have to be i

Access GPU as PCI device

I am new to the GPU OS kernelspace world. I would like to access GPU memory as a PCI device through its memory exposed on the BAR using for exmaple dev_alloc ()

Object is not subscriptable python error django

I have this function where i am using models 'Start' and 'End' that contain fields latitude and longitude.. and I am trying to match them with a field called el

React 18 Fragment complaining of too many children

A few days ago I tried to add Storybook to my React app, and basically everything imploded. I restored from a backup, but it didn't include the node_modules fol

How can I add users in a private room with a command when they are mentioned?

I am creating a command and in this command when I run it, it has to create a room and add the people mentioned. Instead, it adds the user who used the command.

how to drag and drop point in oxyplot,i have no idea

i'm using oxyplot,i want to drag point in scatter series,but i hava no idea. i tried to add OnMouseMove but its not work. var _model0 = new PlotModel(); //axes

Need help on Arraylist quicksort and partition

Instructions: Given a main() that reads user IDs (until -1), complete the quicksort() and partition() methods to sort the IDs in ascending order using the Quic

How do I tell or allow Blazor to "refresh" an HTML element from its bound value that hasn't changed?

When I have a one-way binding on a HTML element and accompanying binding on onchange that doesn't always change it, then how do I tell or allow Blazor to "refre

How can I set a minimum unit test coverage with GitLab CI?

I have a project hosted on GitLab that already has working CI configuration. I would like to add the notion of "minimal code coverage". What I would love is to

Issue upgrading XState's Reddit sample from Vue 2 to Vue 3

After reading the XState documentation I followed the Reddit sample found at the official guide, here: https://xstate.js.org/docs/tutorials/reddit.html I was tr

google-cloud-resource-manage list projects 403 The caller does not have permission

I created a GCP service account and assigned the needed permissions for listing the projects inside the organization. When I'm using the gcloud cli, everything

ChromeDevTools in selenium, waiting for response bodies

I need to work on ajax response, that is one of responses received upon visiting a page. I use selenium dev tools and java. I create a listener, that intercepts

How to add animation to navigation in flutter using Get package?

I want to change the default animation of page transition to fade transition when I go to a new route using get package, Currently I am using this command to na

How to add version info to OpenSSL 3.0.2 fips.dll?

On Windows, I basically run these batch commands to build the OpenSSL 3.0.2 FIPS module (fips.dll): perl Configure VC-WIN64A -MT -Z7 no-shared enable-fips nmake

pyspark error: An error occurred while calling z:org.apache.spark.api.python.PythonRDD.newAPIHadoopRDD

When I tried to search in Spark to Elasticsearch an error ocurred The code that i use is the following: from pyspark import SparkContext from pyspark.sql impor